package com.yqy.spring.T1.beans;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class People {
    //一个人有多个名字
    private List<String> names;
    //一个人有多个手机号
    private Set<String> phones;
    //一个人有多套房子
    private Map<String,String> houses;
    //jdbc的配置
    private Properties properties;
    //一个人有多个女朋友
    private Map<Integer,GirlFriends> girlFriendsMap;
    @Override
    public String toString() {
        return "People\n{" +
                "names=" + names +
                ",\n phones=" + phones +
                ",\n houses=" + houses +
                ",\n properties=" + properties +
                ",\n girlFriendsMap=" + girlFriendsMap +
                '}';
    }
    public void setGirlFriendsMap(Map<Integer, GirlFriends> girlFriendsMap) {
        this.girlFriendsMap = girlFriendsMap;
    }
    public void setNames(List<String> names) {
        this.names = names;
    }
    public void setPhones(Set<String> phones) {
        this.phones = phones;
    }
    public void setHouses(Map<String, String> houses) {
        this.houses = houses;
    }
    public void setProperties(Properties properties) {
        this.properties = properties;
    }
}
